import request from '@/utils/request'

export const getLayoutMenuData = () => {
  return request.get('dictionary/layoutMenu/adminGetDsLayoutMenu')
}

export const addLayoutMenuData = (addForm) => {
  return request.post('dictionary/layoutMenu/addDsLayoutMenu', {
    name: addForm.name,
    priority: addForm.priority,
    description: addForm.description
  })
}

export const getLayoutMenuDataById = (id) => {
  return request.get('dictionary/layoutMenu/getDsLayoutMenuById?id=' + id)
}

export const updateLayoutMenuData = (updateForm) => {
  return request.post('dictionary/layoutMenu/updateDsLayoutMenu', updateForm)
}

export const deleteLayoutMenuDataById = (id) => {
  return request.delete('dictionary/layoutMenu/delDsLayoutMenuById?id=' + id)
}
